package com.kifas.model.xml;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class HutangModel implements Serializable {

	private static final long serialVersionUID = 2684025645735197734L;

	private Long idHutang;

	private Date tanggal;

	private Date tanggalJatuhTempo;

	private String syaratBayar;

	private String noFaktur;

	@XmlElement(name = "supplierModel", type = SupplierModel.class)
	private SupplierModel supplier;

	private BigDecimal amount;

	private String keterangan;

	private String noRef;

	private List<BukuHutangModel> bukuHutangModels;

	private String createdBy;

	private Date createdDate;

	public HutangModel() {
	}

	public HutangModel(Long idHutang, Date tanggal, Date tanggalJatuhTempo, String syaratBayar, String noFaktur, SupplierModel supplier, BigDecimal amount,
			String keterangan, String noRef, String createdBy, Date createdDate) {
		this.idHutang = idHutang;
		this.tanggal = tanggal;
		this.tanggalJatuhTempo = tanggalJatuhTempo;
		this.syaratBayar = syaratBayar;
		this.noFaktur = noFaktur;
		this.supplier = supplier;
		this.amount = amount;
		this.keterangan = keterangan;
		this.noRef = noRef;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public HutangModel(Long idHutang, Date tanggal, Date tanggalJatuhTempo, String syaratBayar, String noFaktur, SupplierModel supplier, BigDecimal amount,
			String keterangan, String noRef, List<BukuHutangModel> bukuHutangModels, String createdBy, Date createdDate) {
		this.idHutang = idHutang;
		this.tanggal = tanggal;
		this.tanggalJatuhTempo = tanggalJatuhTempo;
		this.syaratBayar = syaratBayar;
		this.noFaktur = noFaktur;
		this.supplier = supplier;
		this.amount = amount;
		this.keterangan = keterangan;
		this.noRef = noRef;
		this.bukuHutangModels = bukuHutangModels;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdHutang() {
		return idHutang;
	}

	public void setIdHutang(Long idHutang) {
		this.idHutang = idHutang;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public Date getTanggalJatuhTempo() {
		return tanggalJatuhTempo;
	}

	public void setTanggalJatuhTempo(Date tanggalJatuhTempo) {
		this.tanggalJatuhTempo = tanggalJatuhTempo;
	}

	public String getSyaratBayar() {
		return syaratBayar;
	}

	public void setSyaratBayar(String syaratBayar) {
		this.syaratBayar = syaratBayar;
	}

	public String getNoFaktur() {
		return noFaktur;
	}

	public void setNoFaktur(String noFaktur) {
		this.noFaktur = noFaktur;
	}

	public SupplierModel getSupplier() {
		return supplier;
	}

	public void setSupplier(SupplierModel supplier) {
		this.supplier = supplier;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getNoRef() {
		return noRef;
	}

	public void setNoRef(String noRef) {
		this.noRef = noRef;
	}

	public void setBukuHutangModels(List<BukuHutangModel> bukuHutangModels) {
		this.bukuHutangModels = bukuHutangModels;
	}

	public List<BukuHutangModel> getBukuHutangModels() {
		return bukuHutangModels;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

}
